From f9014f6fc9f9208007244ed651a68efc6c87265f Mon Sep 17 00:00:00 2001 From: robertl Date: Mon, 24 Oct 2005 16:51:50 +0000 Subject: [PATCH] Allow override of creator name. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@1488 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/gpx.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gpsbabel/gpx.c b/gpsbabel/gpx.c index 4063e181f..d4485969a 100644 --- a/gpsbabel/gpx.c +++ b/gpsbabel/gpx.c @@ -64,6 +64,10 @@ static route_head *rte_head; #define MY_CBUF_SZ 4096 #define DEFAULT_XSI_SCHEMA_LOC "http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd" #define DEFAULT_XSI_SCHEMA_LOC_FMT "\"http://www.topografix.com/GPX/%c/%c http://www.topografix.com/GPX/%c/%c/gpx.xsd\"" +#ifndef CREATOR_NAME_URL +# define CREATOR_NAME_URL "GPSBabel - http://www.gpsbabel.org" +#endif + /* * Format used for floating point formats. Put in one place to make it @@ -992,6 +996,8 @@ gpx_rd_deinit(void) } XML_ParserFree(psr); psr = NULL; + wpt_tmp = NULL; + cur_tag = NULL; } static void @@ -1442,7 +1448,7 @@ gpx_write(void) fprintf(ofd, "\n", global_opts.charset_name); fprintf(ofd, "